moat tests and stubs