Updated rails dependency
refactor of tests
deleted unneeded ||