maple_tree: add __init and __exit to test module