added a helper function for cycamore testing
made context() method in model 'class const'