testing: move charm.go from testing to charm/testing

This is a prereq to pulling the charm package out of core.