added tag testing functionality