Added a test funcion