make sure that test cases cover all code path when kernel uses looping unrolling.
Various fixes for const correctness, stray tab characters and unused labels
Signed-off-by: Timothy Gu <timothygu99@gmail.com>