authentication shell for rails4 with tests