add small test case, made sure the counting starts from 0