created tests for deal model