Add failing test for building cache issue. Ref #52
Move get lambda to a method