renamed module_def too module_definition and fixed leading space tests
adds class definition with tests