Added test for assignments/next API endpoint
Fixed 500 on peek when there are no more exercises [fix #238]