added method to tests