add unittest: get data, exception test