Using objects in test