add decorator for token checking
update tests for tokens
fix formatting
add tests for auth decorator