Using virtual reality to test human-robot interaction during a collaborative task