add tests for bean creator