Added tickets api and tests.