fix building of test target.