made tests for the optimized versions...