fixed bugs in LayersMenuFragment, added more testing