Move randomElem into Base
Move readFileStrict into base, and do it properly compatible with readFile
Strengthen the errors test, make sure you increment every time the handler is called
Make the errors test always call clean, to start from a consistent state