working mixed mode test