Does this test ever actually pass? I don't think self.mlp can ever be set by here, since we're still in the __init__ method.