fix strings in tests; move module init to function