move Test module from t/lib to lib
reenable old tests
make these compile in RT4