FORGE-1060 Added tests to verify the DTOClassBuilder

Also fixed a bug in the DTOClassBuilder logic involving incorrect
invocations on the Nested DTOs.