fixed compilation errors in tests for #254