Fix compiler warnings in test project