Add tests for detaching tags and tag statistics
Mark tests done. New test ideas.