tests decorator fully