nit: just do `function notification_dir_test(dir)`. And how about calling it `testNotificationWithDirection` instead ?