ModuleResult association tests

Modified Module's name and granularity getters and setters so they are represented as string on DB and objects for the class