Red-black test code