Add test for orphan spaces and update the comment of the orphans variable