split session and api tests