added spec tests for tags