Fixed errors in tests - created another factory