Switch to RSpec and basic tests

* Use configuration object instead of ENV vars