refactor test
add relation test