Writing an interactive test