[TASK] Refactors halign object and adjusts/extends qunit tests