Refactored long parameter list to own class for document reference between robofly and measurement. Added cleanup of database after tests.