Fixed Tester function to not use inaccessible local variable
Checking whether test class works. Created main method to run this class only without main class