Refactored testcase for facebook authentication