added tag.cpp test file