Isolate new functionality to pass tests
Fix bug where "rspec.failures" persists after tests are run
Add tests and refactor
Rename new global environment variables
Slight optimization in randomization conditional
Update readme