Fixing hacks tests