Setting up test for error