repaired error in base templates (asked for a method of user object, whis does not exists in anonymous object, some fixes to unit tests