Change import style
statemodel.py shouldn't contain a dummy state model
Add a test for session id mismatch