Added error test.