NBPApi - basic api logic implemented, tests refactored - fix build errors