Fixed BeanType, added a very basic test