added a UserMediaError event when something goes wrong. test added as well