Fixed getCurrentConfiguration()
Added unit test for getCurrentConfiguration()