fix some feature testing bugsC