pyldb: add more tests for control manipulation