add rspec and specs for authentication classes