Fixed several typos, added test scripts

@jaberg the TRN test script those an error from the new connection class:

TypeError: The 'inputs' argument to Apply must contain Variable instances, not [[[-10]]]

aside from that just fixed a couple of typos, the other three test scripts run fine.