added test for API validate session