Add test for console
Fix #758, note how to set --port/etc