added legend to quicktest (buggy)