ticket:9 added test for instances_count management command