Fixed local integration tests so it can run standalone