Move test scripts to the 'test' directory
Remove libraries from cmake generation
Add storage and lookup of loop end points