update rails tests for rails4