Simple doubles for JS testing