Test using nave's usemain method