test exceptional cases in loadState