modified matlab tests