add a test, formatting fix