Add rspec and fix circular loading