fixed some tests
capture no longer adds function directly to module