Fixed tests on *nix
Fixed parseNote for empty lines and added tests