passing tests for invalid id and use of incompatible beans