Added leaf null byte check, prelim integration tests pass