Added tests for the tag class