removed code to handle errors. Pointless to try
added call_test_double()
added several funcitons