Created api session and api session test