SpritePack constructors now working properly

SpritePack when loaded from a json file gets the path relative to the json file when required.

Some tests implemented for the SpritePack