Adding test for errorsignal