Updated stubs and test cases; implemented mode configuration to be included for openid classes