refactor apis

remove bogus unit tests