(less repetition and error handling noise in the main test functions)