rewrite struct's tests with dependencies