Improved usage of path in tests