Fix more broken instruction tests
Implement BIT instruction group and refactor code