Removed JSON.stringify from error assertion.