Moved the test for RetainedEval to reef-tests

Closes #971

Also, this does some mild refactorings of the retained evaluators code base towards #928