Add tests for the sameConfig test function