Added test
Converted tests to outcome class