Search params in session too
Move tests for example API to the tests/examples