Changed syncs in messagequeue for tests