[Misc] Added unit tests to make the quality profile pass once more