added minitest tests, added 2 entities in order to handle compability between rails versions