added some test functions