Fix up test
Reinstate api logging