fixed bug with extend

added Graviton.isModel
fixed race conditions in tests