moved AuthTest in functional and added database.php in testing environment