added some functional testing