unit tests for ObjectProvider