Added error test