Fix path resolving in test