Added tests for BeanFactory for creating beans from an expression