re-write megalut test wrapper for debugging
(#22)