testing both objects