fix tests and binary by adding missing dependencies