Adding third test case and fixing bug when the derivation requires more than one loop
Adding four more tests