Nearly complete initializing functions before testing