Writing tests for digger