working in tests. not working in express