In reply to susharma:
How did you compile spi_test_lib_pkg? Packages must be compiled before they can be imported.