updated test with integration