ok fixed the testing routines
now basic tests work