add test function
Merge branch 'milestone6' of github.com:WSO2Mobile/mdm into milestone6