wrote a Integration test