Add Unit test for spy/private bug