Integrationtests

Created tests for the Api