Added first API test.
Added authentication tests.