Fix tree expand tests to fail when they should