Adding unit test for a.state.use