Add test.pl for tests