add dominant flags to tests
check for error if associated record doesn't exist