fixed the failing test with tags.
the removeNames method was incorrect