add rspec of Condition class