Adds the first stages of test stub compiling

Please use JSDoc since TypeScript doesn't understand xmldoc comments