configure test environments with mongoid
add tests