Add Junit tests for Frontend, MessageSystem and LongId