Fixes problem with VERSION not being loaded.
Adds test of dependency api json version