Added fixed code for gpu search, missing tests and deprecated functions (does not compile)