fix building of test target.
Merge remote-tracking branch 'upstream/master'