Fixed issue in perms and added an adder test for loading and unloading circuits