Add test cases to SpecialPageFactoryTest for registration via callback

Change-Id: I9785e64d8daf27abca063f2bc584297db275c2db