added tests for tagging functionality