add basic tests for authentication
add sinion
add authentication tests and bugfix