Fixed handling tests with no tags.
Modified test cloning to make a deep copy.