added more stubbing ability, added gateway login test