update tests for rails 4