Notify '*' pathspec correctly when diffing

I also moved all tests related to notifying in their own file.
Merge pull request #1367 from yorah/fix/pathspecs_behaviour

Correctly return matched pathspec when passing "*" or "."