pushed test code into a function block