Increased rigour of mocktest, added timeout and retry on dbaccess and added count of all accesses