Remove junk file from tests/lib
Use named closures for better stack traces