throw err so that test can pass