added api factory beans tests