Added a test
Bugfixes in BW_preprocess, dbwt input and output is understood properly with new test programs