Added test class and errors test for #186