SortedList: fix assert logic

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
build: enable asserts for junit tests

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>