Added test case for console and plain text backend. Fixed them.