Added tests for provideJ errors.