fixed test to use test instance factory