Fixed things suggested by larsmans on previous commit

Added tests for callable kernel.