add unit test
add logging and deleteAllBeans method