Added support for tests.
Added logAnswer call to the code page.