adding tests for the editSourcePanel