FIX: Fix AccessPointTest unit test by using createNiceMock