tests: set lc_messages to C for tests checking errors