added setup function to tests