handle SSL correctly
add some helpers
remove dummy test
add tenant testcases (#1, #2)