Cache test and fixes
Merge branch 'develop' of github.com:blaavogn/bdsa into develop