[18] Tests for AFactory class