[#55] refactored tests for authenticate and authenticate! methods