added test code for controlpanel fixes #6