Refactor tests.
Fix normalizePath. Add isAbsolutePath validation.