Why not just?
/_test\.[^.]+$/