Add tests for cowboy adapter