Added error cases to tests.