Add MockDB Util for testing and refactored domain

-Tests renamed to Spec due to new Spock Framework