Rephrase dimension error, ignore blank lines
Use assertion context manager
Cover task2 in testsuite