[cleanup] moved testing handler into its own file