Fixed up triangle number test