added resultwriter-spec.js