beggining of test functions