Rewrote entity_test from minitest to rspec