Update tests for dependencies with a dir in `main` and for when no primary js is found.