added tests for extractTag method