fix unit tests for exclude_empty