Add tests to StateManager
Clean up globals from previous commit
start testing selectbox
Refactor typechecking in QueryManager