Add specs for a bunch of internal functions in 'leptus' module