[kronosnet/kronosnet] 3a3458: tests: improve error handling and use named constants