fix nosetest std bug, try to use simple implementation of std