Fix all remanining known build issues + define a non-trivial test