add make test target
normalize path before caching (fixes #15)