[rails4][test] less deprecation warnings