Fix order of missing dependencies in error data
Add test case for missing dependencies
Cleanup whitespace