Completion of tests for state provider

Complete with e2e tests, 20 passing