fix permissions test for rails4