Renamed merge_test_function to is_independent
Update API for ``is_independent`` function, and added docstring