unit tests for google and facebook for state