tests: workaround for strange ko.notifications is undefined error in tests

(integrated from master branch change d7078bf by Todd Whiteman <toddw@activestate.com>)