root2matplotlib: add unit tests