new cap sense test code