Fixed codes for tests

Filter using shared memory was reserving more shared memory than
available because of configuration of the kernel launch. Now it is
fixed for tests purposes.