Just using the hardcoded bitmasks triggered the bug fixed in commit e8f2eeac92 - so just do that as the test.
e8f2eeac92