reformat to 4 spaces
add test for OnExp.state() bug fixed in prev commit