Add API tests. 

Example of mocking see [test/src/nl/esciencecenter/octopus/tests/engine/files/FilesEngineTest.java](test/src/nl/esciencecenter/octopus/tests/engine/files/FilesEngineTest.java)