Added test case to show broken bean lookup with type prediction.

Added test case to Spr8954Tests that explicitly prevents bean creation on type lookup. This results in beans not being found for a "beans by type" call.

Refactored existing test cases to use assert methods correctly.

Issues: SPR-10517, SPR-8954, SPR-9177