adding sign_in_as method and change setup test