completed mocha unit tests for glbackend