Changed to commons-beanutils to construct objects and added more tests