Use join to join path anf file
Fix tests