Do not generate test_args_hash variable if it is not used

Currently test_args_hash is always generated. A warning will be issued if the mgem does not have any test arguments(this variable is not used). This patch only adds test_args_hash when test arguments are present.