Fix callbacks in Pages.add without selector

Test and fix for callbacks in Pages.add without selector