adding tests for level/multilevel adapter features
fixing some issues revealed by tests