add a unit test for provides functionality