finishes first working version of tester routine