refactor tests to skip when flann or _accel not installed

Closes #17.