fix dependency problems for test builds