add test error assets
add error handling and tests for error handling