Refactored junit tests. Moved a lot of repeating code from test body into buildup and added comments for clarification. Also added a nullpointerexception to addnewnotes method as i forgot to do it before