As for as it's cited in WP Code Reference, add_menu_page is defined as:
add_menu_page ( string $page_title, //required
string $menu_title, //required
string $capability, /required
string $menu_slug, //required
callback $function = '', //optional
string $icon_url = '', //option
int $position = null //option
);
And the example given is:
add_menu_page(
__( 'Custom Menu Title', 'textdomain' ),
'custom menu',
'manage_options',
'myplugin/myplugin-admin.php',
'',
plugins_url( 'myplugin/images/icon.png' ),
6
);
Which, looking at your code, you're defining the values and parameters wrong. Have a look at below:
add_menu_page ( 'tm-plug', //string $page_title
'tm-plug', //string $menu_title
'manage_options', //string $capability
'list_table_page', //string $menu_slug
'tm_plug/test.php', //callback $function = ''
'', //string $icon_url = '' (you haven't defined any)
1 //int $position = null(you haven't defined any)
);
Hope by looking at the comments you'd be able to see where you have gone wrong.