Add unittests for tags
Add tests for tag actions, catch tag related errors