Added controls api and guitest