tests and script for rbwt