added some more tags and written some test cases using RSpec