Fixes tests rails4