Wrote Integration tests