added tests for triangle

testing length and width can be set
as well as read from