Added basic test and changed to digest by default