Bug 865824 - Add Layers unit test. r=milan

--HG--
extra : rebase_source : 18ac8eac6c2f35365fca6ecb518e78dba5a29544