Function test() prints message from err object