Add build dependency for test target.