Added tests for missing-dependencies and fixed some tiny bits