more tests and fixed bug with integration tests