add simple tester for toplev