Replaced custom .sh tests by Ruby Rspec