testing getattr and fgetattr in init