Added directoly testing for registered functoin