test for Error class
steal stack from new Error if no captureStackTrace