Implemented first thread test and script execution test.  Also fixed type warnings.