Tests: Fix spacing, use RegExp constructor, remove 'hack' word