Improve the new TestCreateTx and a few other tests

Now that test actually checks the created tx is what we expect.
Also adds a couple tests for selectInputs.