register app method with succesful mocha test