Add diagram

Minor fixes to unit testing that shouldnt break code