testing logic layer