adds tests and implementation for isDescendingDiagonalOpen and isAscendingDiagonalOpen