fix this logic
fix test deps