feature-MICASERVER-8 - added test case and fixed builde error