use get_or_create in PTRViewTests setup
fix api tests
fix duplicate domain error