fixed test and added test for custom run path