NBPApi - basic api logic implemented, tests refactored