Added Tests funtions

run rspec spec