Modified gamestate to evaluate at a time t and made toJSON call evaluate...

... at time 0. Also made TEST actually exit with a status of 1 when either of the testing lines fails.