always use realpath to get test filename

if we don't use realpath here, we end up in an "class x does not exist in y" exception when trying to run a specific test in a windows symlink directory.