fixed tests
fixed tests
fixed the api to have the correct values optional