core: improved unit tests for captures