MAINT: starting to add tests of high-level functions