add tests for auth module
small update to make functions return a value
add context tests