Adds test function and ajax call for form handling to use while developing