Refactored endpoints to follow initialization pattern
Added use strict to handlers
Renamed authentication tests
Missing semicolon
Test the options are set for endpoints