fixed the code review comments and added junit for the tag utility