Fixed compiler errors in tests