Refactor the public API test to use prompt type related fixture