added a test case for heap fields of primitive type