Fixed bugs with F2.AppHandlers.off() method. Added more unit tests to verify that everything is working as expected.