refactor spec helper
add test to verify ignore relations