Extract test into separate function