fixed js-auth tests #869