add a test to verify dependencies

Pretty simple, checks the map both ways. (Also added `inherits` to the dependencies list.)