add setting test code