hn api tests and some basic handler tests