junit tests for dao - reworked, now all how must be