add tests on panel directive