Non-standard fee tests

Various commits, could be picked separately if needed. Main purpose of this PR is adding two tests for non-standard fee transactions.