filling in tests and caught bug in hashing of transaction