added some unit tests for result message and fixed found bugs in deserialization of native collection metadata