updates py tests
remove extra db calls for domain