added missing assert in unit test