Fixed bugs in the implementation of the second derivative withFullBosDet and added a small test program