finish authentication and add some tests
add the remaining test files