added test data and couple simple function