add tests for bean creation failed.