added unit tests (rspec) for tags