failing test
capture is not being assigned to the global scope