Unit testing of MyStackWithError.class