Fix bad doc references and update test app