moat tests, and it closes properly now