add authentication unit test
add: new configuration option for #13
improve tests coverage