fixed viewmodel prototype method dependencies

also added some new unit tests for extenders
module scope "newGuid" function