revrite test search on each connection, add sp call example