Added front panel tests + some code reuse