replace the input parameter tag(string) to tags(array) for multi-tag usage
adjust original test and add a new test for tags input case