scratch test code