Testing hibernate 4