added ebean tests and fixed ebean bug