Use test to make code portable