Add tests for filepath.