Add test cases for NSDicitionary and type checks