Bww fixes

Fix tempotext for bww import. First steps toward btw import auto test (iotest works, but not yet integrated into mtest (work in progress)).