[WIP] Extract test functionality