Fixes bug in root class, test associations method in SampleModel