[PATCH 7/7] test/py: add tests for the button commands