added missing checks at the end of the two paths test