augmented the js mockutils

added the functions that lived in `auxl/test/mock/util.js`, and updated
the `mockResource` function accordingly.