added function to help verify that two pieces of code are the same