Add api testing framework and test for logging in

Signed-off-by: Shea Levy <shea@shealevy.com>