Added more natural possibility of testing synchronously asynchronous calls. Added structure for Errors.