use the simple tester, fixed some bugs.