[ticket/416] Add better test coverage for modules manager

B3P-416