test: adds test cases for lazy initialization; #123
test: adds test cases for __dirname and __filename; #123