Add a test case to check that luaL_checkstack() is working as intended