added graphics tests
added triangular number generator