added deflection test and fixed bug in setOBS