Fixed issues with sp_throw added package framework with unit tests