Fixed IsContract method to use the contractCreation flag
Fixed tests