Refactorings and UnitTests

_Board have a seperate function to return with and without posts
_fix tests. Run tests with "npm test"