chore: refactor out dependencies
chore: ignore globals in test