Removed infinite loop from reg files, typo? in test