Testing pinlock function.

Signed-off-by: JG-liv <jgilbert@liv.ac.uk>