Fix contacts tests

WP-811