Sync test to expect same error STD gives.