fixed two bugs where getReturnValue was not called on elements retrieved from list when comparing values. added some output for debugging in test 7