Added getSource support to the test page

Added getSource support to the test page
create an appendOption function for this