Widget base class tests

Created a Sample that uses all of the functions in _TemplatedWidget, which is the base class for the controls. Then created a unit test to make sure that the sample is working. Also changed the method signature of the attachpoint function to match the attach event function.