small change to tester
changed the main function for testing