truncating exception message to configurated max chars; fixed tests