adapted tests to be able to run from both IDE and maven