Updated ''erts_apps' module functionality. Added more eunit tests.