Added unit tests for twitter and facebook registration callbacks