updated tests to use sys package