Added getSource support to the test page

Added getSource support to the test page
Suggest making this into a createConstraints function.