handle null priorities in state
add tests for character creation