Testing the implementation of lcr function.