Added loader unittest