Update tests, fix #leaf? to use #size