Tets for makeGenericType now actually run. Changed function to accept a type argument rather than being generic as this causes issues with typeof.