add unit tests for tags api view