fixed bug in generateToken call
fixed up all tests for user auth and authenticated note crud