tests: fix test programs using old uart API