Corrected asserts not working with gradle and test for empty list encoding.
Minor log changes.