Added initial tests of api