Replace use of the _is_dict function with the built-in isinstance() function
Fixed functional tests that were not migrated to the new MockContact interface