In a module debug console on a Wikidata client (Q404 is a redirect to Q395):
= mw.wikibase.label('Q404') nil = mw.wikibase.getEntity('Q404') table = mw.wikibase.getEntity('Q404').id Q395 = mw.wikibase.label('Q395') matematika
Loading labels doesn't resolve the redirect, while loading the whole entity does.
Acceptance criteria: