adds custom error object
adds custom teraform error
minor tweak to data test file