cant use hooks in unit tests it seems.