Add tests for extractSingle