adding integration tests for promises