TST: changes AssertionErrors in core/generic/_construct_axes_from_arguments to Type/Value Errors

closes #5051