Make the test config control period shorter so that it runs during the test.
Make all the state objects inherit from 'object'.
Make the controller test actually execute the control loop. Update the output format to be more easily parsed in JS.
Parse the new output format in JS.