add expectError