Modified test_inner.cc to test for both correctness and performance