Added getSource support to the test page

Added getSource support to the test page
instead of 'kind', just pass in the actual element.