added factory for testing, OAuth credentials