Testing without return statement