Added Inner function and test

s/test.ans/test.expect/g
s/ans/got/g