Add MultiLevel test and fix bugs