move method call inside test that requires it