some changes to code

safetyStock calculation test