added preps for finals
added unittest for finals prep
fixed indentation