Fixed ignore check and type check. Unit test cases are fixed.