new API and module creation for tests