Bug 994483 Add Loop unit tests to tbpl. r=dburns