add testcase for newtype deriving