Refactored specs for isPanel