Improved application tests. Relates to #11.