add support for StateStore in testing

This is an easybiblabs/oauth2-client-php feature implemented in 0.3.0 of
that library. It was never updated here in api-client-php