implemented some of the actual testing functions.
added timer function.
added fields missing from initialState
started working on run test
implemented most of runTests
refactored context checking