making phantom an optionalDependency, if not present then open test file in browser