add test cases for nind and some skeleton code