Fix alternate of test/lib files

Closes #303.