Fix test target for out-of-tree builds