test: adds test cases for __dirname and __filename; #113