state.js nicely covered