Tests improvements and simplifications.
Created Result class. Added Settings support.