fixed formatting and adapted PathTest as suggested by @Xoppa