remove expect retrieving from the spec file
implement the helper function
use default options for mocha