fixed specs and added helper

fixed some failing specs by adding an authentication spec helper