Fixed test codes to execute inside the library's package.