fixed ProductionRun tests and added core tests