Support mochas tdd interface (fixes #4)