Fix a bug in a dependency test, add a test to ensure it doesn't choke if an empty string is specified as a dependency