add integration test
fix format