Adding the new state.type.js related unit test.