bug with empty MLN fixed; test cases added; test case procedure re-written