Fixes some memory leaks associated with testing applied forces