added user api, created tests for said api, fixed auth problem with previous tests