Added specs for logging and recursive lock