Fix tests

Empty spaces at the end of these lines made them fail
Fix for rails4