Change repositories api to use current options.
Move tests inside integration.
Change to pass through options.
Test the api behaviour.