Fix dependencies for testing code