Fix broken test
Fix TypeError in path.join()