fixing compile time error on test