adding unit test for experiment functions