added some functionality tests