remove useless stuff

removing paths that seem like they do not belong and API's which are unused.
also removing test.