Added IsBorder and IsCorner to begin supporting Blocks and liberty caching. Also added more tests