Adds key value integration tests

This PR primarily adds KV integration tests, but also fixes some parts of the existing KV integration

For tests this PR adds a reset method for the container
While correct, this is misleading it should be variable_get('service_container_test_definition', array());