Problem with Phaser 4 rectangles.

Thanks, it looks like that is a bug, perhaps related to this:

This will draw a square though:

const graphics = this.add.graphics();

graphics.lineStyle(5, 0xff0000, 1);
graphics.strokeRect(200, 300, 100, 100);

This also fixes it, but may not work for you:

this.testSqr.setOrigin(0.5);