added rspec test environment
added validations and tests for item