add test.bat, test config

Add test.bat a batch file for running tests, fix for some tests.