tag and priority setters added
reorganized unittests