ref fixed, added another test.