You have probably cloned test from dev (or vive versa).
databases with the same dbid cannot be stored in the same schema in rman.

Create another rman user.
Register dev database in new schema.

Suresh