fixed tests. need to refactor network db calls